<script setup>
import { inject } from 'vue';
// 通过 inject 获取值
const theme = inject('theme');
</script>

<template>
  <div style="border: 1px solid red; margin: 16px">
    <h4>App3组件</h4>
    {{ theme }}
  </div>
</template>
